package py.com.erpone.session.dm;

  
import javax.faces.application.FacesMessage;  
import javax.faces.context.FacesContext;  
import javax.inject.Named;

import org.primefaces.event.TabChangeEvent;  

@Named
public class TabBean {  
  
    public void onTabChange(TabChangeEvent event) {  
    	System.out.println(event.getTab().getTitle());
        FacesMessage msg = new FacesMessage(event.getTab().getTitle());  
  
        FacesContext.getCurrentInstance().addMessage(null, msg);  
    }  
}  